#ifndef HANDLER_H
#define HANDLER_H

#include <QObject>

class Handler : public QObject
{
    Q_OBJECT


private:
    explicit Handler(QObject *parent = nullptr);
    //这里自定义一个信号在signals:中写一个函数名

public:
    static Handler * getInstance();
    void addScore();
    void setScore();
    void subtractScore();
    void setTime();
    void stopTime();

signals:
    void beatMouse();
    void beatnoneMouse();
    void returntozero();
    void resettime();
    void stoptime();

public slots:
private:
    static Handler * hand;
};

#endif // HANDLER_H
